<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>添加证件</title>
    <link rel="stylesheet" href="../../../css/aui.css" />
    <link rel="stylesheet" href="../../../css/iconfont/iconfont.css" />
    <link rel="stylesheet" href="../../../css/my/frequenter/add_certificate.css">
    <link rel="stylesheet" href="../../../script/extend/parsley/src/parsley.css">
</head>
<body style="cursor: pointer">

<header class="aui-bar aui-bar-nav" id="header">
    <div class="aui-pull-left aui-btn">
        <span class="aui-iconfont aui-icon-left" onclick="closeWin()"></span>
    </div>
    <div class="aui-title">添加出行人</div>
    <div class="aui-pull-right aui-btn" onclick="add_papers()">完成</div>
</header>

</body>
</html>
<script type="text/javascript" src="../../../script/aui/api.js"></script>
<script type="text/javascript" src="../../../script/aui/aui-dialog.js" ></script>
<script src="../../../script/extend/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="../../../script/extend/parsley/dist/parsley.remote.min.js"></script>
<script type="text/javascript" src="../../../script/extend/parsley/src/i18n/zh_cn.js"></script>
<script type="text/javascript" src="../../../script/common.js"></script>

<script type="text/javascript">
    apiready = function() {
        api.parseTapmode();
        initHeader('add_card');

    };

    function add_papers(){
        if (!$('#myform').parsley().validate()){
            return false;
        }

        var papers    = $("#papers").val();
        var card_type = $("#card_type").val();

        setTimeout(function(){
            document.cookie="papers="+papers;
            document.cookie="card_type="+card_type;
            openWin('select_birthday', './select_birthday_win.html');
        },1000);

    }
</script>
